Component({
    properties: {
        mid: {
            type: [ String, Number ],
            value: "0"
        }
    },
    data: {
        error: !1,
        timeoutId: null,
        self_member_id: "",
        placeholder: "请输入销售员ID（选填）"
    },
    methods: {
        inputChange: function(t) {
            var e = this;
            this.data.error && this.setData({
                error: !1
            }), t.detail == this.data.mid && this.setData({
                placeholder: "禁止输入自己的销售员ID"
            }), this.setData({
                self_member_id: t.detail
            }), this.data.timeoutId && clearTimeout(this.data.timeoutId), this.data.timeoutId = setTimeout(function() {
                e.blurInput();
            }, 1500);
        },
        blurInput: function() {
            this.data.self_member_id == this.data.mid && this.setData({
                error: !0,
                self_member_id: ""
            });
        }
    }
});